package com.runjian.rundo.iot.agent.iec104.parser.frame.monitoring.system;

import java.util.Arrays;
import java.util.List;

import com.runjian.rundo.iot.agent.iec104.consts.Action;
import com.runjian.rundo.iot.agent.iec104.consts.Cot;
import com.runjian.rundo.iot.agent.iec104.consts.Ti;
import com.runjian.rundo.iot.agent.iec104.parser.frame.control.system.C_IC_NA_1;

import lombok.Getter;
import lombok.Setter;

/**
 * M_EI_NA_1(70, "初始化结束")
 *
 * @author CaoQingHua
 */
@Getter
@Setter
public class M_EI_NA_1 extends C_IC_NA_1 {

    @Override
    public void init() {
        // 类型
        this.setTi(Ti.M_EI_NA_1);
    }

    /**
     * 动作,触发的动态
     */
    @Override
    public List<Action> action() {
        if (Ti.M_EI_NA_1 == this.getTi() && Cot.START_ACT == this.getCot()) {
            // 定时总召,单次时间钟同步,定时时间同步
//            return Arrays.asList(Action.SCHEDULED_C_IC_NA_1, Action.SCHEDULED_READ_C_CS_NA_1, Action.SINGLE_C_CS_NA_1);
             return Arrays.asList(Action.SCHEDULED_C_IC_NA_1);
        }
        return null;
    }
}
